package com.eachonline.smart.model.base;

import com.eachonline.model.BaseModel;
import java.io.Serializable;
import java.util.Date;

public class BaseCourseAttachFile extends BaseModel implements Serializable {
    private String courseId;

    private String courseTimeId;

    private String attachFile;

    private Date createTme;

    private String isCorseTime;

    private Integer downloadNum;

    private static final long serialVersionUID = 1L;

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId == null ? null : courseId.trim();
    }

    public String getCourseTimeId() {
        return courseTimeId;
    }

    public void setCourseTimeId(String courseTimeId) {
        this.courseTimeId = courseTimeId == null ? null : courseTimeId.trim();
    }

    public String getAttachFile() {
        return attachFile;
    }

    public void setAttachFile(String attachFile) {
        this.attachFile = attachFile == null ? null : attachFile.trim();
    }

    public Date getCreateTme() {
        return createTme;
    }

    public void setCreateTme(Date createTme) {
        this.createTme = createTme;
    }

    public String getIsCorseTime() {
        return isCorseTime;
    }

    public void setIsCorseTime(String isCorseTime) {
        this.isCorseTime = isCorseTime == null ? null : isCorseTime.trim();
    }

    public Integer getDownloadNum() {
        return downloadNum;
    }

    public void setDownloadNum(Integer downloadNum) {
        this.downloadNum = downloadNum;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sid=").append(sid);
        sb.append(", courseId=").append(courseId);
        sb.append(", courseTimeId=").append(courseTimeId);
        sb.append(", attachFile=").append(attachFile);
        sb.append(", createTme=").append(createTme);
        sb.append(", isCorseTime=").append(isCorseTime);
        sb.append(", downloadNum=").append(downloadNum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseCourseAttachFile other = (BaseCourseAttachFile) that;
        return (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        return result;
    }
}